var Page = require('../general/pageentity');
var ResultMessage = require('../general/resultmessage');

class BaseService{

  GetPage(req){
    return new Page(req.headers['page']);
  }
  Success(message,data){
    return ResultMessage.Success(message,data);
  }
  Error(message,data){
    return ResultMessage.Error(message,data);
  }
}
module.exports = new BaseService();